package com.example.forum.commons.tools;

import java.util.List;

public class PageUtil {
    public long totalCount;// 总条数
    public List<?> list;
    public Integer pageIndex;
    public Integer pageSize;

    public PageUtil(long totalCount,List<?> list)
    {
        this.list=list;
        this.totalCount = totalCount;
    }
    public PageUtil(Integer pageIndex,Integer pageSize)
    {

        this.pageIndex=pageIndex!=null?pageIndex:0;
        this.pageSize = pageSize!=null?pageSize:10;
    }
}
